package com.yingpai.fitness.dvp_2_0.main.activity.fitness;

import android.os.Bundle;
import android.view.View;
import android.widget.TextView;

import com.yingpai.fitness.R;
import com.yingpai.fitness.dvp_2_0.common.activity.CommonActivity;
import com.yingpai.fitness.dvp_2_0.common.util.constant.Contacts;
import com.zzhoujay.richtext.RichText;

import butterknife.BindView;
import butterknife.OnClick;

/**
 * Created by ASUS on 2018/10/6.
 */

public class HtmlTextActivity extends CommonActivity {

    @BindView(R.id.textview)
    TextView textview;

    @Override
    protected void onCreate(Bundle savedInstanceState) {
        super.onCreate(savedInstanceState);
        setStatusFlag(Contacts.NORMAL_STATUS);
        setContentView(R.layout.activity_html_text);
    }

    @Override
    protected void initView() {
        Bundle bundle = getIntent().getExtras();
        if (bundle != null) {
            String title = bundle.getString("title");
            String content = bundle.getString("content");
            setTitle(title);
            RichText.fromHtml(content).into(textview);
        }
    }

    @Override
    protected void initData() {

    }

    @Override
    @OnClick({})
    public void onViewClicked(View view) {
        super.onViewClicked(view);
        switch (view.getId()) {

        }
    }
}
